package com.twu.biblioteca;

public class Launcher {
    public static void main(String[] args) throws Exception {
        Book[] books = {
            new Book("Harry Potter", "Vivek", "1992", false),
            new Book("Four  States", "Dhanesh", "1991", false)
        };
        Movie[] movies = {
            new Movie("Holiday", "2014", "Subhash", "8", false),
            new Movie("Shehenshah", "1992", "Sajid", "9", false)
        };
        User[] users = {
            new User("777-4445", "TW12", "Vivek", "vivekpatil2092@gmail.com", "9096904102"),
            new User("654-8866", "Apple", "Chandan", "chandan00104@gmail.com", "9420473943")
        };
        User currentUser = null;

        Collection bookCollection = new BookCollection(books);
        Collection movieCollection = new MovieCollection(movies);
        UserCollection userCollection = new UserCollection(users);
        new BibliotecaApp(bookCollection, movieCollection, userCollection, System.out, System.in).run(currentUser);
    }
}
